<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>小赫个人博客</title>
</head>

<link href="/templates/xym/plugin/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/templates/xym/css/common.css" />
<link href="logo.ico" rel="shortcut icon" />
<script src="/templates/xym/plugin/jquery.min.js"></script>
<script src="/templates/xym/plugin/bootstrap/js/bootstrap.min.js"></script>
<!--<script type="text/javascript" src="/templates/xym/plugin/jquery.page.js"></script>-->
<!--<script src="/templates/xym/js/common.js"></script>-->
<!--<script src="/templates/xym/js/snowy.js"></script>-->
<body>

<div class="w_header">
    <div class="container">
        <div class="w_header_top">
            {{--<a href="#" class="w_logo"></a>--}}
            <a href="/"  style="color: yellow;float: left;font-size: 22px;line-height: 55px">小赫博客</a>
            {{--<img style="height: 55px" src="/templates/xym/img/hgz.png" alt="">--}}
            <span class="w_header_nav">
					<ul>
						<li><a href="/" class="active">首页</a></li>
                        @fenlei(['pid'=>0])

						    <li><a href="{{route('lists',$v['id'])}}">{{$v['shopname']}}</a></li>

                        @endfenlei
                        <li><a href="{{route('aboutme')}}" class="active">About Me</a></li>
					</ul>
				</span>
            <div class="w_search">
                <div class="w_searchbox">
                    <input type="text" placeholder="search" />
                    <button>搜索</button>
                </div>
            </div>

        </div>
    </div>
</div>

<div class="w_container">
    <div class="container">
        <div class="row w_main_row">
            <div class="col-lg-9 col-md-9 w_main_left">



                {{--文章顶部和右侧边栏都不动--}}
                @yield('content')


            </div>




            <div class="col-lg-3 col-md-3 w_main_right">

                <div class="panel panel-default sitetip">
                    <a href="{{route('aboutme')}}">
                        <strong>站点公告</strong>
                        <h3 class="title">个人博客</h3>
                        <p class="overView">本站纯属技术交流站，有问题可以私聊站长，微信：hgz3668358</p>
                    </a>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">热门标签</h3>
                    </div>
                    <div class="panel-body">
                        <div class="labelList">

                            @suo
                                <a class="label label-default"  href="{{route('lists',$c['id'])}}">{{$c['shopname']}}</a>
                            @endsuo

                        </div>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">推荐文章</h3>
                    </div>
                    <div class="panel-body">
                        <ul class="list-unstyled sidebar">

                            @wenzhang(['iscommend'=>1])
                            <li>
                                <a href="{{$a['url']}}">{!! $a['title'] !!}</a>
                            </li>
                            @endwenzhang

                        </ul>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">友情链接</h3>
                    </div>
                    <div class="panel-body">
                        <div class="newContent">
                            <ul class="list-unstyled sidebar shiplink">
                                <li>
                                    <a href="https://www.baidu.com/" target="_blank">百度</a>
                                </li>
                                <li>
                                    <a href="https://www.oschina.net/" target="_blank">开源中国</a>
                                </li>
                                <li>
                                    <a href="http://www.ulewo.com/" target="_blank">有乐网</a>
                                </li>
                                <li>
                                    <a href="http://www.sina.com.cn/" target="_blank">新浪网</a>
                                </li>
                                <li>
                                    <a href="http://www.qq.com/" target="_blank">腾讯网</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">关注微信公众号</h3>
                    </div>
                    <div class="panel-body">
                        <img src="/templates/xym/img/weixin2.jpg" style="height: 230.5px;width: 230.5px;" />
                    </div>
                </div>

                {{--替换模板--}}
            </div>

        </div>

    </div>


</div>
<div class="w_foot">
    <div class="w_foot_copyright">Copyright &copy; 2017-2020, www.wfyvv.com. All Rights Reserved. <span>|</span>
        <a target="_blank" href="http://www.miitbeian.gov.cn/" rel="nofollow">皖ICP备17002922号</a>
    </div>
</div>
</body>

<script type="text/javascript">
    var $backToTopEle = $('<a href="javascript:void(0)" class="Hui-iconfont toTop" title="返回顶部" alt="返回顶部" style="display:none">^</a>').appendTo($("body")).click(function() {
        $("html, body").animate({ scrollTop: 0 }, 120);
    });
    var backToTopFun = function() {
        var st = $(document).scrollTop(),
            winh = $(window).height();
        (st > 0) ? $backToTopEle.show(): $backToTopEle.hide();
        /*IE6下的定位*/
        if(!window.XMLHttpRequest) {
            $backToTopEle.css("top", st + winh - 166);
        }
    };

    $(function() {
        $(window).on("scroll", backToTopFun);
        backToTopFun();
    });
</script>


{{--@yield('script')--}}


</html>